package com.jwell.IDcard.reader.api;

import com.sun.jna.Library;
import com.sun.jna.ptr.ByteByReference;
import com.sun.jna.ptr.IntByReference;

/**
 * @author 唐旭
 * @version 1.0.0
 * @FileName:
 * @Company: 成都积微物联电子商务有限公司
 * @Date 2017/12/28
 * @remark:
 */
public interface SdtApi extends Library {
    int SDT_GetCOMBaud(int iPort, IntByReference puiBaudRate);

    int SDT_SetCOMBaud(int iPort, int uiCurrBaud, int uiSetBaud);

    int SDT_OpenPort(int iPort);

    int SDT_ClosePort(int iPort);

    int SDT_ResetSAM(int iPort, int iIfOpen);

    int SDT_SetMaxRFByte(int iPort, byte ucByte, int iIfOpen);

    int SDT_GetSAMStatus(int iPort, int iIfOpen);

    int SDT_GetSAMID(int iPort, ByteByReference pucSAMID, int iIfOpen);

    int SDT_GetSAMIDToStr(int iPort, ByteByReference pcSAMID, int iIfOpen);

    int SDT_StartFindIDCard(int iPort, byte[] pucManaInfo, int iIfOpen);

    int SDT_SelectIDCard(int iPort, byte[] pucManaMsg, int iIfOpen);

    int SDT_ReadBaseMsg(int iPort, char[] pucCHMsg, IntByReference pucCHMsgLen, byte[] pucPHMsg, IntByReference puiPHMsgLen, int iIfOpen);

}











